﻿#include "FITKAbaProfilePipe.h"


Interface::FITKAbaProfile::FITKAbaProfileShape Interface::FITKAbaProfilePipe::getShape() const
{
    return Interface::FITKAbaProfile::FITKAbaProfileShape::Pipe;
}

bool Interface::FITKAbaProfilePipe::copy(FITKAbstractDataObject *obj)
{
    FITKAbaProfilePipe* pipe = dynamic_cast<FITKAbaProfilePipe*>(obj);
    if (pipe == nullptr)
        return false;
    this->setDataObjectName(pipe->getDataObjectName());
    m_formulation = pipe->m_formulation;
    m_radius = pipe->m_radius;
    m_thickness = pipe->m_thickness;
    return true;
}

Interface::FITKAbaProfilePipe::PipeFormulation Interface::FITKAbaProfilePipe::getFormulation() const
{
    return m_formulation;
}

void Interface::FITKAbaProfilePipe::setFormulation(PipeFormulation type)
{
    m_formulation = type;
}

double Interface::FITKAbaProfilePipe::getRadius() const
{
    return m_radius;
}

void Interface::FITKAbaProfilePipe::setRadius(double value)
{
    m_radius = value;
}

double Interface::FITKAbaProfilePipe::getThickness() const
{
    return m_thickness;
}

void Interface::FITKAbaProfilePipe::setThickness(double value)
{
    m_thickness = value;
}
